public class EquilateralTriangle extends Triangle
{
    public EquilateralTriangle(Point p1,Point p2,Point p3)
    {
        super(p1,p2,p3);
        this.shape="等边三角形";
    }

    public EquilateralTriangle()
    {
        super();
        this.shape="等边三角形";
    }

    public EquilateralTriangle(Triangle tri)
    {
        super(tri);
        this.shape="等边三角形";
    }

//    public String toString()
//    {
//        return "EquilateralTriangle{"+
//                "shape='"+shape+'\''+
//                ", point1="+point1+
//                ", point2="+point2+
//                ", point3="+point3+
//                ", a="+a+
//                ", b="+b+
//                ", c="+c+
//                '}';
//    }

    public String toString()
    {
        return "new EquilateralTriangle("+point1+","+point2+","+point3+")";
    }

}
